package com.example.take_out_dish.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.take_out_dish.dto.DishDTO;
import com.example.take_out_dish.entity.Dish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜品管理 Mapper 接口
 * </p>
 *
 * @author yyyyys
 * @since 2024-07-01
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    List<DishDTO> selectDishDTOPage(@Param("page") Page<DishDTO> page,
                                    @Param("name") String name,
                                    @Param("categoryId") String categoryId,
                                    @Param("status") Integer status);
}
